package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity
@Table(name = "z_drug_base_info")
public class BaseInfo implements Serializable {
	private static final long serialVersionUID = 1856797231194957418L;

	@Id
	@Column(name = "drug_id_bigint", columnDefinition = "bigint(20)")
	private Long drugID;
	@Column(name = "drug_name_nvarchar", columnDefinition = "varchar(255)")
	private String drugName;
	@Column(name = "disable_bit", columnDefinition = "tinyint(1)")
	private Boolean disable;
	@Column(name = "create_time_datetime", columnDefinition = "datetime(3)")
	private Date createTime;
	@Column(name = "py_nvarchar", columnDefinition = "varchar(255)")
	private String py;
	@Column(name = "price_money", columnDefinition = "decimal(10,2)")
	private BigDecimal price;
	@Column(name = "img_nvarchar", columnDefinition = "varchar(255)")
	private String img;
}
